package com.pocket.mic.filter;

import org.springframework.context.ApplicationContext;

public class SpringProxy {

	private static ApplicationContext springProxy=null;
	
	public static void init(ApplicationContext ctx){
		if(null==springProxy){
//			springProxy = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml","spring-metasys-dao.xml","spring-metasys-service.xml"});
			springProxy=ctx;
		}
	}
	public static Object getBean(String bean){
		if(null!=springProxy){
			return springProxy.getBean(bean);
		}
		return null;
	}
}
